/**
 * @file MStreamer.h
 *
 * This file defines the global parameters, variables, types... for the application.
 *
 * @author Luc Fourestier
 * @date 2009
 */

#ifndef MSTREAMER_H_
#define MSTREAMER_H_

#include <stddef.h>

#include "Version.h"
#ifndef VERSION
#define VERSION "MStreamer->Unversionned"
#endif

#define APP_NAME "MStreamer"

#define CLI_ENABLE

// Strings
#define MSTR_MAX_NAME_LENGTH 256

// Default circular buffer config
#define MAX_CIRCBUFF_ELT 2000

// Internet
#define MSTR_IP_ADDR_LENGTH 16


// Globals
typedef struct MStreamerOpt_s
{
	char ErrorString[MSTR_MAX_NAME_LENGTH];
	char OwnInetAddr[MSTR_IP_ADDR_LENGTH];
#ifdef CLI_ENABLE
	int CliEnable;
#endif
	int Daemonize;
} MStreamerOpt_t;

extern MStreamerOpt_t MStreamerOpt;

extern char * Version;

#endif /* MSTREAMER_H_ */
